# Contributor: Bryce Vandegrift <bryce@brycevandegrift.xyz>
# Maintainer: Bryce Vandegrift <bryce@brycevandegrift.xyz>
pkgname=finger
pkgver=0.5
pkgrel=0
pkgdesc="Small, simple, and portable finger client and server"
url="https://sr.ht/~bpv/finger/"
arch="all"
license="MIT"
makedepends="scdoc"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-v$pkgver.tar.gz::https://git.sr.ht/~bpv/finger/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

prepare() {
	default_prepare
	sed -i '/CFLAGS/{s/=/+=/}' "$builddir"/config.mk
}

build() {
	make
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
a37a6766669430d7cdf1165ddf149dc59103150a3e9a06b2a73c4dbe67494bec5f1ad7f1c78c226e72b815001033f8a6165ff2cd70add91a785b444574dde4b1  finger-v0.5.tar.gz
"
